import { HOME_URL } from '../../constants'
import { Button, Result } from 'antd'
import { useNavigate } from 'react-router-dom'

const NotNetwork = () => {
  const navigate = useNavigate()
  const goToHome = () => {
      navigate(HOME_URL)
  }
  return (
    <Result
        status="500"
        title="500"
        subTitle="Sorry, something went wrong."
        extra={
            <Button type="primary" onClick={goToHome}>
                Back Home
            </Button>
        }
    />
  )
}

export default NotNetwork